export default request => ({
  GetSqlStatementByTableId: (data) => request({
    url: '/onlcode/lowcode/tableComponent/tableConverSql',
    method: 'post',
    data
  }),
  GetAnalysisSqlInfo: (data) => request({
    url: '/onlcode/lowcode/tableComponent/analysisSql',
    method: 'post',
    data
  }),
  SaveTableComponentInfo: (data)=> request({
    url: '/onlcode/lowcode/tableComponent/saveOrUpdateTableComponent',
    method: 'post',
    data
  }),
  GetTableComponentDetail: (params)=> request({
    url: '/onlcode/lowcode/tableComponent/getTableComponentById',
    method: 'get',
    params
  }),
  DeleteTableComponent: (params)=> request({
    url: '/onlcode/lowcode/tableComponent/deleteTableComponent',
    method: 'get',
    params
  }),
  GetTableComponentSelectOptions: (data)=> request({
    url: '/onlcode/lowcode/tableComponent/queryOptions',
    method: 'post',
    data
  }),
  SAVE_TABLE_GENERATE_CODE:(params) =>
    request({
      url: `/onlcode/lowcode/tableComponent/generateCode`,
      method: 'post',
      data: params
    }),
  GET_GENERATE_TABLE_PARAMS:(params) =>
    request({
      url: `/onlcode/lowcode/tableComponent/getGenerateParam`,
      method: 'get',
      params
    })
})
